import request from "@/utils/request";
import type { AxiosPromise } from "axios";
import type {
  UserLevelExperienceLogVO,
  UserLevelExperienceLogQuery,
} from "@/api/userLevelExperienceLog/types";

/**
 * 查询用户等级经验变动记录列表
 * @param query
 * @returns {*}
 */

export const listUserLevelExperienceLog = (
  query?: UserLevelExperienceLogQuery
): AxiosPromise<UserLevelExperienceLogVO[]> => {
  return request({
    url: "/business/userLevelExperienceLog/web/list",
    method: "get",
    params: query,
  });
};
